package com.ssy.lingxi.order.service.web;

import com.ssy.lingxi.common.response.PageData;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.order.model.vo.basic.request.OrderProcessIdVO;
import com.ssy.lingxi.order.model.vo.basic.request.OrderProcessUpdateStatusVO;
import com.ssy.lingxi.order.model.vo.process.request.OrderProcessNamePageVO;
import com.ssy.lingxi.order.model.vo.process.request.OrderPurchaseProcessContractPageVO;
import com.ssy.lingxi.order.model.vo.process.request.OrderPurchaseProcessUpdateVO;
import com.ssy.lingxi.order.model.vo.process.request.OrderPurchaseProcessVO;
import com.ssy.lingxi.order.model.vo.process.response.BasePurchaseProcessVO;
import com.ssy.lingxi.order.model.vo.process.response.OrderProcessPageQueryVO;
import com.ssy.lingxi.order.model.vo.process.response.OrderPurchaseProcessContractQueryVO;
import com.ssy.lingxi.order.model.vo.process.response.OrderPurchaseProcessDetailVO;
import org.springframework.http.HttpHeaders;

import java.util.List;

/**
 * 采购流程规则配置相关接口
 * @author 万宁
 * @version 2.0.0
 * @date 2021-07-24
 */
public interface IOrderPurchaseProcessService {

    /**
     * 分页查询采购流程规则
     * @param headers HttpHeaders信息
     * @param pageVO 接口参数
     * @return 查询结果
     */
    Wrapper<PageData<OrderProcessPageQueryVO>> pagePurchaseProcesses(HttpHeaders headers, OrderProcessNamePageVO pageVO);

    /**
     * 新增采购规则页面 - 查询基础采购流程列表
     * @param headers Http头部信息
     * @return 查询结果
     */
    Wrapper<List<BasePurchaseProcessVO>> listBasePurchaseProcess(HttpHeaders headers);

    /**
     * 新增采购流程规则
     * @param headers HttpHeaders信息
     * @param processVO 接口参数
     * @return 新增结果
     */
    Wrapper<Void> createPurchaseProcess(HttpHeaders headers, OrderPurchaseProcessVO processVO);

    /**
     * 查询采购流程规则详情
     * @param headers HttpHeaders信息
     * @param idVO 接口参数
     * @return 查询结果
     */
    Wrapper<OrderPurchaseProcessDetailVO> getPurchaseProcess(HttpHeaders headers, OrderProcessIdVO idVO);

    /**
     * 分页查询采购流程规则适用合同列表
     * @param headers HttpHeaders信息
     * @param pageVO  接口参数
     * @return 查询结果
     */
    Wrapper<PageData<OrderPurchaseProcessContractQueryVO>> pagePurchaseProcessProducts(HttpHeaders headers, OrderPurchaseProcessContractPageVO pageVO);

    /**
     * 修改采购流程规则
     * @param headers HttpHeaders信息
     * @param updateVO 接口参数
     * @return 修改结果
     */
    Wrapper<Void> updatePurchaseProcess(HttpHeaders headers, OrderPurchaseProcessUpdateVO updateVO);

    /**
     * 修改采购流程规则状态
     * @param headers HttpHeaders信息
     * @param statusVO 接口参数
     * @return 修改结果
     */
    Wrapper<Void> updatePurchaseProcessStatus(HttpHeaders headers, OrderProcessUpdateStatusVO statusVO);

    /**
     * 删除采购流程规则
     * @param headers HttpHeaders信息
     * @param idVO 接口参数
     * @return 删除结果
     */
    Wrapper<Void> deletePurchaseProcess(HttpHeaders headers, OrderProcessIdVO idVO);
}
